﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StatePattern
{
    internal class StatusTow : Status
    {
        public override void DoWork(Work w)
        {
            if (w.tickte < 18)
            {
                Console.WriteLine($"{w.tickte},下午打瞌睡");
            }
            else
            {
                w.SetStatus(new StatusThree());
                w.DoWork();
            }
        }
    }
}
